<?php

namespace App\Http\Requests\Admin\Wechat;

use App\Http\Requests\Admin\Request;

class CreateRequest extends Request
{

    public function rules()
    {
        return [
            'name' => 'required|max:20|unique:replys,name'
        ];
    }

    public function messages()
    {
        return [
            'name.required' => '规则名称必须填写',
            'name.unique' => '规则名称已存在'
        ];
    }
}
